package com.wenx.v3system.modular.cloud.domain.maps;

import com.wenx.v3system.modular.cloud.domain.dto.SysPermissionConditionDto;
import com.wenx.v3system.modular.cloud.domain.po.SysPermissionCondition;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 系统权限条件映射器
 * 
 * @author wenx
 * @since 1.0.0
 */
@Mapper(componentModel = "spring")
public interface SysPermissionConditionMap {

    /**
     * DTO转Entity
     */
    SysPermissionCondition toEntity(SysPermissionConditionDto dto);
    
    /**
     * Entity转DTO
     */
    SysPermissionConditionDto toDto(SysPermissionCondition entity);
    
    /**
     * DTO列表转Entity列表
     */
    List<SysPermissionCondition> toEntityList(List<SysPermissionConditionDto> dtoList) ;

    /**
     * Entity列表转DTO列表
     */
    List<SysPermissionConditionDto> toDtoList(List<SysPermissionCondition> entityList) ;

}